<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
if (window.testRunner)
  testRunner.dumpAsText();

function repaintTest() {
  document.getElementById('primitive').remove();
}
onload = runRepaintAndPixelTest;
</script>
<style>
.target {
  width: 100px;
  height: 100px;
  background-color: green;
  filter: url(#f);
}
</style>
<div class="target"></div>
<svg style="display: none">
  <filter id="f">
    <feColorMatrix values="0 1 0 0 0, 0 0 0 0 0, 0 0 1 0 0, 0 0 0 1 0"
                   id="primitive"/>
  </filter>
</svg>
